package com.hq.myapplicationdemo.model;

import java.io.Serializable;
import java.util.Objects;

public class TimeHouseBean implements Serializable {
    private String housingId;
    public long time;

    public String getHousingId() {
        return housingId;
    }

    public TimeHouseBean(String housingId, long time) {
        this.housingId = housingId;
        this.time = time;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TimeHouseBean that = (TimeHouseBean) o;
        return Objects.equals(housingId, that.housingId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(housingId);
    }
}
